home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / AIncludes / RomEqu.a < prev    next >
Encoding:
Text File  |  1989-10-13  |  5.4 KB  |  156 lines  |  [TEXT/MPS ]

  1. ; Version: 2.76
  2. ; Created: Wednesday, September 20, 1989 at 3:33:59 PM
  3. ;
  4. ; File: ROMEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1986-1988
  8. ; All Rights Reserved
  9. ;
  10. ; Description : This file contains the CONST definitions used by the
  11. ; Slot Manager and Declaration ROM's
  12. ;
  13. ;------------------------------------------------------------------------
  14.  
  15.  
  16. ; Constants
  17.  
  18. ; Misc.
  19. defaultTO        EQU         100
  20. ;=====================================================================
  21. ;Format-Header
  22. ;=====================================================================
  23. appleFormat     EQU         1                        ;Format of Declaration Data (IEEE will assign real value)
  24. romRevision     EQU         1                        ;First ROM revision.
  25. romRevRange     EQU         9                        ;Revision of Declaration Data Format [1..9]
  26. testPattern     EQU         1519594439                ;FHeader long word test pattern
  27. ;=====================================================================
  28. ;sExec constants
  29. ;=====================================================================
  30. sExec2            EQU         2                        ;Revision of header {For sExec}.
  31. ;=====================================================================
  32. ;sExec constants
  33. ;=====================================================================
  34. sCPU68000        EQU         1                        ;CPU type = 68000
  35. sCPU68020        EQU         2                        ;CPU type = 68020
  36. sCPU68030        EQU         3                        ;CPU type = 68030
  37.  
  38. ;=====================================================================
  39. ;sDRVR directory constants
  40. ;=====================================================================
  41. sMacOS68000     EQU         1                        ;Mac OS, CPU type = 68000
  42. sMacOS68020     EQU         2                        ;Mac OS, CPU type = 68020
  43. sMacOS68030     EQU         3                        ;Mac OS, CPU type = 68030
  44.  
  45.  
  46. ;=====================================================================
  47. ;sResource types
  48. ;=====================================================================
  49. ;<Category>
  50. catBoard        EQU         1
  51. catTest         EQU         2
  52. catDisplay        EQU         3
  53. catNetwork        EQU         4
  54.  
  55. ;<Type>
  56. typBoard        EQU         0
  57. typApple        EQU         1
  58. typVideo        EQU         1
  59. typEtherNet     EQU         1
  60.  
  61. ;Driver Interface : <id.SW>
  62. drSwApple        EQU         1
  63.  
  64. ;Driver Interface : <id.SW><id.WH>
  65. drHwTFB         EQU         1
  66. drHw3Com        EQU         1
  67. drHwBSC         EQU         3
  68.  
  69.  
  70.  
  71. ;=====================================================================
  72. ;Declaration ROM Id's
  73. ;=====================================================================
  74. ;---------------------------------------------------------------------
  75. ; Misc
  76. ;---------------------------------------------------------------------
  77. endOfList        EQU         255                     ;End of list
  78.  
  79.  
  80. ;---------------------------------------------------------------------
  81. ; sResource List. Category: All
  82. ;---------------------------------------------------------------------
  83. ;The following Id's are common to all sResources.
  84. sRsrcType        EQU         1                        ;Type of sResource
  85. sRsrcName        EQU         2                        ;Name of sResource
  86. sRsrcIcon        EQU         3                        ;Icon
  87. sRsrcDrvrDir    EQU         4                        ;Driver directory
  88. sRsrcLoadRec    EQU         5                        ;Load record
  89. sRsrcBootRec    EQU         6                        ;sBoot record
  90. sRsrcFlags        EQU         7                        ;sResource Flags
  91. sRsrcHWDevId    EQU         8                        ;Hardware Device Id
  92. minorBaseOS     EQU         10                        ;Offset to base of sResource in minor space.
  93. minorLength     EQU         11
  94. majorBaseOS     EQU         12                        ;Offset to base of sResource in Major space
  95. majorLength     EQU         13
  96. sRsrcTest        EQU         14                        ; sBlock diagnostic code
  97. sRsrcCIcon        EQU         15                        ; CQD color icon
  98. sRsrcIc18        EQU         16                        ; 'icl8' 8-bit color icon data
  99. sRsrcIc14        EQU         17                        ; 'icl4' 4-bit color icon data
  100. sGammaDir        EQU         64                        ; spID for gamma directory
  101. sRsrcVidNames    EQU         65                        ; spID for video name directory
  102.  
  103. ;---------------------------------------------------------------------
  104. ; sResource List. Category: Board
  105. ;---------------------------------------------------------------------
  106. ;The following Id's are common to all Board sResources.
  107. boardId         EQU         32                        ;Board Id
  108. pRAMInitData    EQU         33                        ;sPRAM init data
  109. primaryInit     EQU         34                        ;Primary init record
  110. timeOutConst    EQU         35                        ;Time Out constant. 
  111. vendorInfo        EQU         36                        ;Vendor information List {See Vendor List, below}
  112. boardFlags        EQU         37                        ;Board Flags
  113. secondaryInit    EQU         38                        ;Secondary init record
  114.  
  115. ;---------------------------------------------------------------------
  116. ;Vendor List
  117. ;---------------------------------------------------------------------
  118. ;The following Id's are associated with the VendorInfo id
  119. vendorId        EQU         1                        ;Vendor Id
  120. serialNum        EQU         2                        ;Serial number
  121. revLevel        EQU         3                        ;Revision level
  122. partNum         EQU         4                        ;Part number
  123. date            EQU         5                        ; Last revision date of the card
  124.  
  125.  
  126. ;---------------------------------------------------------------------
  127. ; sResource List. Category_Type: Test_One
  128. ;---------------------------------------------------------------------
  129. ;The following Id's are common to all Test_One_x sResources.
  130. testByte        EQU         32                        ;Test byte.
  131. testWord        EQU         33                        ;Test Word.
  132. testLong        EQU         34                        ;Test Long.
  133. testString        EQU         35                        ;Test String.
  134.  
  135.  
  136.  
  137. ;*************************************************************
  138. ;Macros
  139. ;*************************************************************
  140. ;=============================================================
  141. ; Offset List Entry
  142. ;=============================================================
  143.                 MACRO
  144.                 OSLstEntry    &Id,&Offset
  145.                 DC.L        (&Id<<24) ++ ((&Offset-*) ** $00FFFFFF)
  146.                 ENDM
  147.  
  148.  
  149. ;=============================================================
  150. ; Data List Entry
  151. ;=============================================================
  152.                 MACRO
  153.                 DatLstEntry &Id,&Data
  154.                 DC.L        (&Id<<24)+&Data
  155.                 ENDM
  156.